package com.kinghunt.misp.service.api.materialx;

import com.bygoodtech.kings.common.dto.ApiResult;
import com.bygoodtech.kings.common.dto.page.PageInfo;
import com.kinghunt.misp.common.dto.materialx.MaterialDTO;
import com.kinghunt.misp.common.dto.materialx.MaterialStockDTO;
import com.kinghunt.misp.common.param.materialx.MaterialParam;
import com.kinghunt.misp.common.param.materialx.MaterialStockParam;

/**
 * 地区管理
 *
 * @Author ciaran
 * @Date 2023/7/13 21:58l
 */
public interface MaterialService {

    /**
     * 查询所有客户
     *
     * @param materialParam
     * @return 信息
     */
    ApiResult<PageInfo<MaterialDTO>> getMaterialList(MaterialParam materialParam);
    ApiResult<PageInfo<MaterialStockDTO>> getMaterialStockList(MaterialParam materialParam);
    /**
     * 查询客户详细信息
     *
     * @param materialId
     * @return 信息
     */
    ApiResult<MaterialDTO> getMaterialDetail(Long materialId);
    /**
     * 根据地区父ID获取下一级
     *
     * @param materialParam
     * @return 信息
     */
    ApiResult addMaterial(MaterialParam materialParam);
    ApiResult updateMaterial(MaterialParam materialParam) ;

    ApiResult<Boolean> deleteMaterial(Long materialId) ;

    ApiResult updateMaterialStock(MaterialStockParam materialStockParam);
}
